package ru.amse.tsyganov.jumleditor.model;



public abstract class State extends ModelElement {
	
	private final StateVertex stateVertex = new StateVertex(this);
	
	private Partition partition;
	
	private String name = "";
	
	public final StateVertex getStateVertex() {
		return stateVertex;
	}

	public final Partition getPartition() {
		return partition;
	}

	public void setPartition(Partition partition) {
		if (partition == null) {
			throw new IllegalArgumentException();
		}
		this.partition = partition;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
